package org.luxor.commons.sms.config.properies;

/**
 * Aliyun-Client 配置
 *
 * @author Mr.yan @date 2020/2/8
 */
public class AliyunProperties {
    private final Boolean DEFAULT_ENABLED = Boolean.TRUE;

    private final String DEFAULT_DAMIN = "dysmsapi.aliyuncs.com";
    private final String DEFAULT_REGION_ID = "cn-hangzhou";
    private final String DEFAULT_ACCESS_KEY_ID = "none";
    private final String DEFAULT_ACCESS_KEY_SECRET = "none";
    private final String DEFAULT_SIGN_NAME = "none";

    /**
     * 是否启用
     */
    private boolean enabled;

    /**
     * 阿里云Domain
     */
    private String domain;

    /**
     * 阿里云RegionId
     */
    private String regionId;

    /**
     * 阿里云ACCESS_KEY_ID（必填项）
     */
    private String accessKeyId;

    /**
     * 阿里云ACCESS_KEY_SECRET（必填项）
     */
    private String accessKeySecret;

    /**
     * 短信签名（必填项）
     */
    private String signName;

    public AliyunProperties() {
        this.enabled = DEFAULT_ENABLED.booleanValue();
        this.domain = DEFAULT_DAMIN;
        this.regionId = DEFAULT_REGION_ID;
        this.accessKeyId = DEFAULT_ACCESS_KEY_ID;
        this.accessKeySecret = DEFAULT_ACCESS_KEY_SECRET;
        this.signName = DEFAULT_SIGN_NAME;
    }

    public boolean isEnabled() {
        return this.enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }
}
